<template>
  <div class="infinite-list" id="common-layout " v-infinite-scroll="load" style="overflow: auto">
    <el-header><Header></Header></el-header>
    <el-container class="contain">
      <div class="left"><list></list></div>
      <div class="right">列表</div>
    </el-container>
  </div>
</template>

<script>
// import Header from './header.vue';

import Header from './header.vue';
import Main from './main.vue';
import list from './list.vue';

export default {
  components: { Header, Main, list },

  data() {
    return {
      count: 0
    };
  },
  methods: {
    load() {
      this.count += 4;
    }
  }
};
</script>

<style scoped>
#common-layout {
  height: 100%;
  width: 100%;
}
.el-container {
  height: 80%;
  width: 100%;
}

.el-header {
  width: 100%;
  height: 20%;
}

.el-aside {
  background-color: #f4f5;
  color: #333;
  text-align: center;
  line-height: 200px;
  width: 30%;
}

.el-main {
  background-color: #f4f5f5;
  /* color: #333;  */
  text-align: center;
  line-height: 160px;
  width: 70%;
}

.container {
  width: 1080px;
  margin: 50px auto;
  display: flex;
}

.left {
  flex: 1;
  background: #fff;
  margin-right: 10px;
  text-align: center;
  line-height: 200px;
  color: #ccc;
  font-size: 26px;
}
.right {
  width: 350px;
  background: #fff;
}
</style>
